package com.baidu.Chapter02;

import java.util.Scanner;

public class ex2_14 {
    public static void main(String[] args) {
        System.out.print("Enter weight in pounds：");
        Scanner sc=new Scanner(System.in);
        double weight=sc.nextDouble();
        System.out.print("Enter height in inches：");
        double height= sc.nextDouble();
        System.out.printf("BMI is %.4f\n",(weight*0.45359237/(Math.pow(height,2)*Math.pow(0.0254,2))));
    }
}
